﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibYanu.DAO;
using NHibernate;
namespace LibYanu.Security
{
    public class SecurityScope:Sc<SecurityGen>
    {
        static SecurityScope()
        {
            ScInitializer<SecurityGen>.Init(SecurityGen.NhDiff);            
        }

        public SecurityScope()
            : base()
        {
        }

        public SecurityScope(FlushMode flushMode, SessionBehaviour behaviour)
            : base(flushMode, behaviour)
        {
        }

        public new static ISessionFactory SessionFactory
        {
            get
            {
                return Sc<SecurityGen>.SessionFactory;
            }
        }
    }
}
